package com.dungeon.crawl;

public class Creature {
	int xCoord;
	int yCoord;
	Profession prof;
	int left, right, up, down, HP, MP, str, netXP, crntXP;
	
	public enum Profession {
		KNIGHT, BADGUY
	}
	//constructor
	public Creature() {
	}
	//getters & setters
	public void setXCoord(int newX) {
		xCoord = newX;
	}
	public void setYCoord(int newY) {
		yCoord = newY;
	}
	public int getXCoord() {
		return xCoord;
	}
	public int getYCoord() {
		return yCoord;
	}
	public Profession getProf() {
		return prof;
	}
	public int getBitmapIndex(int direction) {
		switch (direction) {
		case 1:
			return up;
		case 2:
			return right;
		case 3:
			return down;
		case 4:
			return left;
		default:
			return (Integer) null;
		}
	}
	//sets the four core bitmaps of the creature & their profession
	public void setProf(int newp, int nleft, int nright, int nup, int ndown) {
		switch (newp) {
		case 0:
			prof = Profession.KNIGHT;
			break;
		case 1:
			prof = Profession.BADGUY;
		}
		left = nleft;
		right = nright;
		up = nup;
		down = ndown;
	}
	
}
